﻿#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>
struct list
{
	char name[20];
	double quan;//
	double unit;//
	double total;//ܼ
	double total2;
};
int main()
{
	struct list list1;
	double sum = 0;
	while (scanf("%s", list1.name) != EOF)
	{
		scanf("%lf", &list1.quan);
		scanf("%lf", &list1.unit);
		list1.total = list1.quan * list1.unit;
		list1.total = list1.total * 10;
		list1.total = round(list1.total);
		list1.total2 = list1.total / 10;
		sum += list1.total2;

	}
	printf("%.1lf", sum);
	return 0;
}